//
//  RecordDetailsCell.m
//  DefendHealth
//
//  Created by 吾诺瀚卓 on 17/3/8.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "RecordDetailsCell.h"

@implementation RecordDetailsCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        [self initCellUI];
        
    }
    
    return self;
    
}


- (void)initCellUI {
    
    UIView *bgView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 55)];
    bgView.backgroundColor = kWhiteColor;
    [self.contentView addSubview:bgView];
    
    UILabel *titleL = [ReduceCode creatLabelWithFrame:CGRectMake(20, 11, kScreenWidth-100, 30) title:@"随意跑 5.01公里" titleColor:UIColorFromRGB(0x333333) font:14 textAlignment:NSTextAlignmentLeft];
    [bgView addSubview:titleL];
    
    UIImageView *jianTouIV = [ReduceCode creatImageVeiwWithFrame:CGRectMake(kMaxX(bgView.frame)-40, 15, 10, 20) imageName:@"next" isCorner:NO];
    [bgView addSubview:jianTouIV];
    
    [ToolUtil createLine:54 superView:self.contentView lift:10 width:kScreenWidth-20 hight:1 color:K_LineColor];
}

@end
